package com.hanlink.dsp.model;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.util.Date;

/**
 * <pre>
 *
 *  BTDSP
 *
 *
 *  Copyright (C): 2015-11-14
 *
 * Description:
 *
 * Revision History
 * Date			  Author		Description
 * 2015-11-14        PeterVon       初始创建
 *
 * </pre>
 */
@Table(name = "_user_profile", onCreated = "CREATE UNIQUE INDEX IDX_USER_PROFILE_NAME ON _user_profile(_name)")
public class UserProfile extends BaseSettings {

    public static final String TYPE = "_type";
    public static final String NAME  = "_name";

    @Column(name = "_name")
    protected String name;

    @Column(name = TYPE)
    private int type = 0; //默认配置是2.1模式 7.1模式  5 音乐列表

    @Column(name = "_mode")
    private int mode = 0; //默认0用户模式，1调音师模式

    @Column(name = "_dev")
    private int dev = 0;// 1DSP125.4D  2.DSP125.4D

    @Column(name = "_btdsp")
    private int btdsp = 1; //默认0btdsp，1ezdsp

    @Column(name = "_create_date")
    private Date createDate = new Date();

    public UserProfile() {

    }

    public UserProfile(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }


    @Override
    public void resetData() {

    }

    @Override
    public String toString() {
        return "UserProfile{" +
                "id=" + id +
                '}';
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getType() {
        return type;
    }

    public int getDev() {
        return dev;
    }

    public void setDev(int dev) {
        this.dev = dev;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getBtdsp() {
        return btdsp;
    }

    public void setBtdsp(int btdsp) {
        this.btdsp = btdsp;
    }
}
